package org.jgs1904.mybatis.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author: 默苍璃
 * @date: 2022-01-05 13:20
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
public class Teacher {

    private int id;

    private String name;

    /**
     * 一个 老师 可以有多个 学生
     */
    private List<Student> students;

}
